package cn.cdiothree.service;

import cn.cdiothree.dataobject.OrderComment;
import cn.cdiothree.vo.ResultVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface OrderCommentService extends IService<OrderComment> {

    /**
     * 订单文字评论
     * @param userId
     * @param orderId
     * @param commentText
     * @return
     */
    ResultVO addTextComment(Integer userId,String orderId,String commentText);


    /**
     * 获取订单文字评论
     * @param userId
     * @param orderId
     * @return
     */
    ResultVO getTextComment(Integer userId,String orderId);

    /**
     * 获取订单评论列表
     * @param userId
     * @param orderId
     * @return
     */
    List<OrderComment> getCommentList(Integer userId, String orderId);
}
